-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments please: #359
base: master
Are you sure you want to change the base?
Comments please: #359
Conversation
This toggles the setting to save tabs when you close patchbay. The setting is not yet enabled.
If the setting is enabled, then when we open a new tab, check if it is already in the list; if not add it.
If the save open tabs feature enabled, then if the page is in the opne tabs list, delete it from the list when closing the tab.
Based on the saved open tabs checkbox setting we will open on load all the tabs either from the default list or from save open tabs.
const saveTabs = api.settings.obs.get('patchbay.saveTabs', false) | ||
if (saveTabs()) { | ||
const openTabs = api.settings.obs.get('patchbay.openTabs', []) | ||
var _tabs = openTabs() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If using const, why not use let
instead of var
to be a tiny bit more strict regarding variable access?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx... will do.
I "think" I can use api.settings.sync.get rather than obs.get too
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? |
This set of commits provides a setting to save open tabs, o that when you close and reopen patchbay it retains the tabs you had open when you closed it.
Improvements, suggestions, mentoring on better approaches welcomed.